// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * ShipPlansSub
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "ship_plans_sub", autoResultMap = true)
@Schema(title = "发货计划单子表")
public class ShipPlansSub implements Serializable {

  /**
   * 所属发货计划单
   */
  @TableField(value = "`parent_ship_plans`")
  @JoinField(ShipPlans.class)
  @Schema(title = "所属发货计划单")
  private Long parentShipPlans;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 计划编号
   */
  @TableField(value = "`order_sn`")
  @Schema(title = "计划编号")
  private String orderSn;

  /**
   * 图片
   */
  @TableField(value = "`img`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> img;

  /**
   * MSKU
   */
  @TableField(value = "`msku`")
  @Schema(title = "MSKU")
  private String msku;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @Schema(title = "FNSKU")
  private String fnsku;

  /**
   * ASIN
   */
  @TableField(value = "`asin`")
  @Schema(title = "ASIN")
  private String asin;

  /**
   * 父ASIN
   */
  @TableField(value = "`parentasin`")
  @Schema(title = "父ASIN")
  private String parentasin;

  /**
   * 产品
   */
  @TableField(value = "`product_id`")
  @JoinField(Product.class)
  @Schema(title = "产品")
  private Long productId;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 店铺
   */
  @TableField(value = "`shop_id`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shopId;

  /**
   * 计划发货量
   */
  @TableField(value = "`planned_shipment`")
  @Schema(title = "计划发货量")
  private Long plannedShipment;

  /**
   * 总计发货量
   */
  @TableField(value = "`total_shipment`")
  @Schema(title = "总计发货量")
  private Long totalShipment;

  /**
   * 差异量
   */
  @TableField(value = "`difference_quantity`")
  @Schema(title = "差异量")
  private Long differenceQuantity;

  /**
   * 运输方式
   */
  @TableField(value = "`type_of_shipping`")
  @Schema(title = "运输方式")
  private String typeOfShipping;

  /**
   * 物流商
   */
  @TableField(value = "`logistics_business_id`")
  @JoinField(LogisticsProvider.class)
  @Schema(title = "物流商")
  private Long logisticsBusinessId;

  /**
   * 物流渠道
   */
  @TableField(value = "`logistics_channel`")
  @JoinField(LogisticsChannel.class)
  @Schema(title = "物流渠道")
  private Long logisticsChannel;

  /**
   * 预计到货时间
   */
  @TableField(value = "`estimated_time_of_arrival`")
  @Schema(title = "预计到货时间")
  private java.util.Date estimatedTimeOfArrival;

  /**
   * 发货仓库
   */
  @TableField(value = "`delivery_warehouse_id`")
  @JoinField(Warehouse.class)
  @Schema(title = "发货仓库")
  private Long deliveryWarehouseId;

  /**
   * 包装类型
   */
  @TableField(value = "`packaging_type`")
  @Schema(title = "包装类型")
  private String packagingType;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 状态 (0 - 待处理; 1 - 已处理; )
   */
  @TableField(value = "`state`")
  @Schema(title = "状态")
  private String state;

  /**
   * 物流预计时效
   */
  @TableField(value = "`estimated_time_of_logistics`")
  @Schema(title = "物流预计时效")
  private String estimatedTimeOfLogistics;

  /**
   * 箱规名称
   */
  @TableField(value = "`box_name`")
  @Schema(title = "箱规名称")
  private String boxName;

  /**
   * 单箱数量（PCS）
   */
  @TableField(value = "`per_carton`")
  @Schema(title = "单箱数量（PCS）")
  private Integer perCarton;

  /**
   * 箱数
   */
  @TableField(value = "`carton_numbers`")
  @Schema(title = "箱数")
  private Integer cartonNumbers;

  /**
   * 发货时间
   */
  @TableField(value = "`scheduled_delivery_time`")
  @Schema(title = "发货时间")
  private java.util.Date scheduledDeliveryTime;

  /**
   * 发货仓库店铺
   */
  @TableField(value = "`delivery_warehouse_store_id`")
  @JoinField(ShopInfo.class)
  @Schema(title = "发货仓库店铺")
  private Long deliveryWarehouseStoreId;

  /**
   * 发货仓库FNSKU
   */
  @TableField(value = "`delivery_warehouse_store_fnsku`")
  @JoinField(ListingFather.class)
  @Schema(title = "发货仓库FNSKU")
  private Long deliveryWarehouseStoreFnsku;

  /**
   * 锁定仓位
   */
  @TableField(value = "`lock_bin`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "锁定仓位")
  private Long lockBin;

  /**
   * FBA库存预测
   */
  @TableField(value = "`fba_forecasting_inventory_technique`")
  @Schema(title = "FBA库存预测")
  private Integer fbaForecastingInventoryTechnique;

  /**
   * 可用量
   */
  @TableField(value = "`quantity_available`")
  @Schema(title = "可用量")
  private Integer quantityAvailable;

  /**
   * 待检待上架量
   */
  @TableField(value = "`quantity_test`")
  @Schema(title = "待检待上架量")
  private Integer quantityTest;

  /**
   * 待到货量
   */
  @TableField(value = "`quantity_aog`")
  @Schema(title = "待到货量")
  private Integer quantityAog;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 是否锁定库存
   */
  @TableField(value = "`is_lock`")
  @Schema(title = "是否锁定库存")
  private Boolean isLock;

  /**
   * 是否加急
   */
  @TableField(value = "`is_urgent`")
  @Schema(title = "是否加急")
  private Boolean isUrgent;

  /**
   * 货件号
   */
  @TableField(value = "`shipment_order`")
  @Schema(title = "货件号")
  private String shipmentOrder;

  /**
   * 申报量
   */
  @TableField(value = "`shipment_num`")
  @Schema(title = "申报量")
  private Integer shipmentNum;

  /**
   * 发货单号
   */
  @TableField(value = "`delivery_order`")
  @Schema(title = "发货单号")
  private String deliveryOrder;

  /**
   * 关联量
   */
  @TableField(value = "`deliver_num`")
  @Schema(title = "关联量")
  private Integer deliverNum;

  /**
   * 钩稽字段
   */
  @TableField(value = "`plan_num_hidden`")
  @Schema(title = "钩稽字段")
  private Integer planNumHidden;

  /**
   * 包装规格
   */
  @TableField(value = "`specifications`")
  @Schema(title = "包装规格")
  private String specifications;

  /**
   * 箱规
   */
  @TableField(value = "`boxgauge`")
  @Schema(title = "箱规")
  private String boxgauge;

  /**
   * CBM(m2)
   */
  @TableField(value = "`cbm`")
  @Schema(title = "CBM(m2)")
  private java.math.BigDecimal cbm;

  /**
   * 体积重(kg)
   */
  @TableField(value = "`volumeweight`")
  @Schema(title = "体积重(kg)")
  private java.math.BigDecimal volumeweight;

  /**
   * 单品净重(g)
   */
  @TableField(value = "`itemweight`")
  @Schema(title = "单品净重(g)")
  private java.math.BigDecimal itemweight;

  /**
   * 单品毛重(g)
   */
  @TableField(value = "`itemgrossweight`")
  @Schema(title = "单品毛重(g)")
  private java.math.BigDecimal itemgrossweight;

  /**
   * 单箱重量(kg)
   */
  @TableField(value = "`singleitemweight`")
  @Schema(title = "单箱重量(kg)")
  private java.math.BigDecimal singleitemweight;

  /**
   * 单箱毛重
   */
  @TableField(value = "`singleboxweight`")
  @Schema(title = "单箱毛重")
  private java.math.BigDecimal singleboxweight;

  /**
   * 总净重
   */
  @TableField(value = "`totalweight`")
  @Schema(title = "总净重")
  private java.math.BigDecimal totalweight;

  /**
   * 生成货件 (0 - 否; 1 - 是; )
   */
  @TableField(value = "`generateshipment`")
  @Schema(title = "生成货件")
  private String generateshipment;

  /**
   * fnskuname
   */
  @TableField(value = "`fnskuname`")
  @Schema(title = "fnskuname")
  private String fnskuname;

  /**
   * 标题
   */
  @TableField(value = "`title`")
  @Schema(title = "标题")
  private String title;
}
